var mongoose = require('mongoose');
var TaskSchema = new mongoose.Schema({
    name: String,
    type: String,
    level: String,
    status: String,
    desc: String,
    details: String,
    comment: String,
    createTime: {
        type: Date,
        default: Date.now()
    },
    modifyTime: {
        type: Date,
        default: Date.now()
    },
    version: String,
    publishTime: {
        type: Date,
        default: Date.now()
    }
})

module.exports = TaskSchema;